package com.ruoyi.finance.mapper;

import java.util.List;
import com.ruoyi.finance.domain.IncomingInvoice;
import com.ruoyi.finance.domain.VoucherTemplate;
import com.ruoyi.finance.domain.VoucherTemplateType;

/**
 * 销项发票Mapper接口
 *
 * @author ruoyi
 * @date 2025-03-04
 */
public interface IncomingInvoiceMapper
{
    /**
     * 查询销项发票
     *
     * @param id 销项发票主键
     * @return 销项发票
     */
    public IncomingInvoice selectIncomingInvoiceById(Long id);

    /**
     * 查询销项发票列表
     *
     * @param incomingInvoice 销项发票
     * @return 销项发票集合
     */
    public List<IncomingInvoice> selectIncomingInvoiceList(IncomingInvoice incomingInvoice);

    /**
     * 新增销项发票
     *
     * @param incomingInvoice 销项发票
     * @return 结果
     */
    public int insertIncomingInvoice(IncomingInvoice incomingInvoice);

    /**
     * 修改销项发票
     *
     * @param incomingInvoice 销项发票
     * @return 结果
     */
    public int updateIncomingInvoice(IncomingInvoice incomingInvoice);

    /**
     * 删除销项发票
     *
     * @param id 销项发票主键
     * @return 结果
     */
    public int deleteIncomingInvoiceById(Long id);

    /**
     * 批量删除销项发票
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteIncomingInvoiceByIds(Long[] ids);

    List<VoucherTemplateType> VoucherTemplateTypelist();

    List<VoucherTemplate> VoucherTemplatelist();

    IncomingInvoice selectvoucherTemplate(Integer templateId);
}
